Optimal. Leaf size=116 \[ \frac {152 a^2 \sin (c+d x)}{105 d \sqrt {a+a \cos (c+d x)}}+\frac {38 a \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{105 d}-\frac {4 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{7 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2838, 2830,
2726, 2725} \begin {gather*} \frac {152 a^2 \sin (c+d x)}{105 d \sqrt {a \cos (c+d x)+a}}+\frac {2 \sin (c+d x) (a \cos (c+d x)+a)^{5/2}}{7 a d}-\frac {4 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{35 d}+\frac {38 a \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{105 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2726
Rule 2830
Rule 2838
Rubi steps
\begin {align*} \int \cos ^2(c+d x) (a+a \cos (c+d x))^{3/2} \, dx &=\frac {2 (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{7 a d}+\frac {2 \int \left (\frac {5 a}{2}-a \cos (c+d x)\right ) (a+a \cos (c+d x))^{3/2} \, dx}{7 a}\\ &=-\frac {4 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{7 a d}+\frac {19}{35} \int (a+a \cos (c+d x))^{3/2} \, dx\\ &=\frac {38 a \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{105 d}-\frac {4 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{7 a d}+\frac {1}{105} (76 a) \int \sqrt {a+a \cos (c+d x)} \, dx\\ &=\frac {152 a^2 \sin (c+d x)}{105 d \sqrt {a+a \cos (c+d x)}}+\frac {38 a \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{105 d}-\frac {4 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 (a+a \cos (c+d x))^{5/2} \sin (c+d x)}{7 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 81, normalized size = 0.70 \begin {gather*} \frac {a \sqrt {a (1+\cos (c+d x))} \sec \left (\frac {1}{2} (c+d x)\right ) \left (735 \sin \left (\frac {1}{2} (c+d x)\right )+175 \sin \left (\frac {3}{2} (c+d x)\right )+63 \sin \left (\frac {5}{2} (c+d x)\right )+15 \sin \left (\frac {7}{2} (c+d x)\right )\right )}{420 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 86, normalized size = 0.74
method | result | size |
default | \(\frac {4 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a^{2} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (60 \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-12 \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+19 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+38\right ) \sqrt {2}}{105 \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(86\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.54, size = 69, normalized size = 0.59 \begin {gather*} \frac {{\left (15 \, \sqrt {2} a \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 63 \, \sqrt {2} a \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 175 \, \sqrt {2} a \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 735 \, \sqrt {2} a \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{420 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 67, normalized size = 0.58 \begin {gather*} \frac {2 \, {\left (15 \, a \cos \left (d x + c\right )^{3} + 39 \, a \cos \left (d x + c\right )^{2} + 52 \, a \cos \left (d x + c\right ) + 104 \, a\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{105 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.56, size = 100, normalized size = 0.86 \begin {gather*} \frac {\sqrt {2} {\left (15 \, a \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 63 \, a \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 175 \, a \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 735 \, a \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{420 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (c+d\,x\right )}^2\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________